package com.mapper;

import com.entity.Customer;
import com.entity.CustomerExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface CustomerMapper {
    long countByExample(CustomerExample example);

    int deleteByExample(CustomerExample example);

    int deleteByPrimaryKey(String cid);

    int insert(Customer record);

    int insertSelective(Customer record);

    List<Customer> getAll();

    List<Customer> getCustomersByPage(Map<String,Object> map);

    List<Customer> selectByExample(CustomerExample example);



    Customer selectByPrimaryKey(String cid);

    Customer selectByPrimaryKeyWithDietian(String cid);


    Customer selectByPrimaryKeyWithFood(String cid);


    int updateByExampleSelective(@Param("record") Customer record, @Param("example") CustomerExample example);

    int updateByExample(@Param("record") Customer record, @Param("example") CustomerExample example);

    int updateByPrimaryKeySelective(Customer record);

    int updateByPrimaryKey(Customer record);
}